package com.cmc.cloud.cmclink.doc.api.document.req.so.sovo.docbkconfirmprintsetupvo;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * booking confirm 打印配置 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DocBkConfirmPrintSetupBaseVO {

    @Schema(description = "港口代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{DocBkConfirmPrintSetupBaseVO.portCode.NotBlank}")
    @Length(max = 5, message = "{DocBkConfirmPrintSetupBaseVO.portCode.Length}")
    private String portCode;

    @Schema(description = "打印公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotBlank(message = "{DocBkConfirmPrintSetupBaseVO.companyName.NotBlank}")
    @Length(max = 100, message = "{DocBkConfirmPrintSetupBaseVO.companyName.Length}")
    private String companyName;

    @Schema(description = "打印地址")
    @Length(max = 150, message = "{DocBkConfirmPrintSetupBaseVO.address.Length}")
    private String address;

    @Schema(description = "打印电话传真")
    @Length(max = 100, message = "{DocBkConfirmPrintSetupBaseVO.telephone.Length}")
    private String telephone;

    @Schema(description = "打印email")
    @Length(max = 100, message = "{DocBkConfirmPrintSetupBaseVO.email.Length}")
    private String email;

    @Schema(description = "打印备注", example = "你说的对")
    @Length(max = 2000, message = "{DocBkConfirmPrintSetupBaseVO.remark.Length}")
    private String remark;

}
